﻿using SqlSugar;
using Wechat_PublicNumber.Entity;

namespace Wechat_PublicNumber.Repository
{
    public class HolidayRepository : DataAccess
    {
        public async Task AddHoliday(List<HolidayTime> entitys) => await WXDb.Insertable(entitys).ExecuteCommandAsync();

        public async Task AddHoliday() => await WXDb.Queryable<HolidayTime>().ToListAsync();
    }
}
